#include <set>
#include <iostream>

using namespace std;
typedef set<unsigned> Cards;
int main( int argc, char *argv[] ) {
    unsigned total(0), won(0);
    for ( unsigned i = 0; i < 52; i++ ) {
	for ( unsigned j = i+1; j < 52; j++ ) {
	    for ( unsigned k = j+1; k < 52; k++ ) {
		for ( unsigned l = k+1; l < 52; l++ ) {
		    for ( unsigned m = l+1; m < 52; m++ ) {
			for ( unsigned n = m+1; n < 52; n++ ) {
			    Cards hand;
			    hand.insert( i % 13 );
			    hand.insert( j % 13 );
			    hand.insert( k % 13 );
			    hand.insert( l % 13 );
			    hand.insert( m % 13 );
			    hand.insert( n % 13 );
			    total++;
			    if ( hand.size() < 6 ) {
				won++;
			    }
			}
		    }
		}
	    }
	}
	cout << i << endl;
    }
    cout << total << endl;
    cout << won << endl;
    cout << (double)won/total << endl;
    return 0;
}
